﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OGS.Utility;

namespace OGS.Web.Models.Admin
{
    public class SiteImagesListModel
    {
        public List<SiteImage> SiteImage { get; set; }

        public string Name { get; set; }

        /// <summary>
        /// Populate Images
        /// </summary>
        /// <param name="Name"></param>
        public void Populate(string Name)
        {
            this.SiteImage = new SiteImageExplorer().Search(Name);
            this.Name = Name;
        }
    }
}